package com.apigateway.model;

import org.apache.ibatis.type.Alias;

@Alias("service")
public class ApiService {
    private Integer id;

    private String ip;

    private int port;

    private String serviceName;

    private String serviceType;

    private String category;
    private String registerPath;

    public String getRegisterPath() {
        return registerPath;
    }

    public void setRegisterPath(String registerPath) {
        this.registerPath = registerPath;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port=port;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String name) {
        this.serviceName = name == null ? null : name.trim();
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String type) {
        this.serviceType = type == null ? null : type.trim();
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category == null ? null : category.trim();
    }
}